import { ref } from 'vue'
import { findHot } from '@/api/home'

export function getNewHot () {
  const newHot = ref([])
  async function getList () {
    const res = await findHot()
    // console.log(res)
    newHot.value = res.data.result
  }
  getList()
  return {
    newHot
  }
}
